package com.unknown.wiki.app;

import android.app.Application;

import com.unknown.communication.AndroidBus;
import com.unknown.wiki.manager.ActivityManager;
import com.unknown.wiki.manager.NetworkManager;
import com.unknown.wiki.manager.ServiceManager;

public class WikiApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        init();
        registerActivityLifecycleCallbacks(ActivityManager.getInstance());
    }

    private void init() {
        ServiceManager.init();
        ActivityManager.init();
        AndroidBus.init();
        NetworkManager.init();
    }

}
